for x in range(3):
    1
    pwd = input('请输入密码：')
    if pwd == '123456':
        print('密码正确，恭喜你')
        break
    else:
        print('密码错误')
else:
    print('三次错误，已锁死')
